﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SWEN3WebService.Models
{
    public class RoomsRepository : IRoomsRepository
    {
        public RoomsRepository()
        {
        }

        public IEnumerable<Rooms> GetAll()
        {
            return RoomDBManager.GetAllRooms().Cast<Rooms>();
        }

        public Boolean UpdateRooms(Rooms item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }
            return true;
        }
    }
}